
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
		<style type="text/css" media="screen"> 
            html, body  { height:100%; }
            body { margin:0; padding:0; overflow:auto; text-align:center; 
                   background-color: #ffffff; }   
            object:focus { outline:none; }
            #flashContent { display:none; }
        </style>
        
        <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
        <!-- BEGIN Browser History required section -->
        <link rel="stylesheet" type="text/css" href="${ctx}/flex/history/history.css" />
        <script type="text/javascript" src="${ctx}/flex/history/history.js"></script>
        <!-- END Browser History required section -->  
            
        <script type="text/javascript" src="${ctx}/flex/swfobject.js"></script>
        <script type="text/javascript">
        	jQuery(function($) {
	            // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. 
	            var swfVersionStr = "11.1.0";
	            // To use express install, set to playerProductInstall.swf, otherwise the empty string. 
	            var xiSwfUrlStr = "playerProductInstall.swf";
	            var flashvars = {};
	            var params = {};
	            params.quality = "high";
	            params.bgcolor = "#ffffff";
	            params.allowscriptaccess = "sameDomain";
	            params.allowfullscreen = "true";
	            params.wmode = "Opaque";
	            var attributes = {};
	            attributes.id = "Realtime";
	            attributes.name = "Realtime";
	            attributes.align = "middle";
	            swfobject.embedSWF(
	                "${ctx}/flex/Realtime.swf", "flashContent", 
	                "100%", "400", 
	                swfVersionStr, xiSwfUrlStr, 
	                flashvars, params, attributes);
	            // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
	            swfobject.createCSS("#flashContent", "display:block;text-align:left;");
	          timerid  = window.setInterval("refreshLoad()",1000);
        	});
        	function setCtxPath(){
            	var ctxPath = "${ctxPath}";
            	document.getElementById("Realtime").setCtx(ctxPath);
            }
        	function refreshLoad(){
       		 var date = new Date();
       		  var ss = date.getSeconds();
	       		if(ss == '15'){
	       			document.getElementById("Realtime").refreshRealTime();
	       		}
	       	}
        </script>
  </head>
  
  <body>
   <div id="flashContent">
            <p>
                To view this page ensure that Adobe Flash Player version 
                11.1.0 or greater is installed. 
            </p>
            <script type="text/javascript"> 
                var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); 
                document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" 
                                + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); 
            </script> 
        </div>
        
        <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="Realtime">
                <param name="movie" value="Realtime.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="wmode" value="transparent" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="true" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="Realtime.swf" width="100%" height="100%">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="true" />
                <!--<![endif]-->
                <!--[if gte IE 6]>-->
                    <p> 
                        Either scripts and active content are not permitted to run or Adobe Flash Player version
                        11.1.0 or greater is not installed.
                    </p>
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </noscript>   
  </body>
</html>
